package hihocode;

import java.util.Scanner;
import java.util.regex.Pattern;

public class ReplaceString {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String string;
		String regex = "marshtomp";
		Pattern pattern = Pattern.compile(regex, Pattern.CASE_INSENSITIVE);
		while(scanner.hasNext()){
			string = scanner.nextLine();
			string = pattern.matcher(string).replaceAll("fjxmlhx");
			System.out.println(string);
		}
		scanner.close();
	}
}
